Imports System.Data.SqlClient
Public Class CompanyTrainings
    Public Shared Function GetCompanyTraining() As DataTable

        Str = "SELECT TRAINING_ID,EMPLOYEE_NAME=ENGLISH_NAME +' ( '+KHMER_NAME+' )',COURSE,DURATION,CERTIFICATE,START_DATE,FINISH_DATE,SCHOOL_NAME,TRAINING_TYPE,NOTE ,MODIFY_BY,GROUP_NAME,EXPENSE,ACTIVE FROM  VIEW_COMPANY_TRAINNING  WHERE ACTIVE=1 ORDER BY TRAINING_ID ASC "

        Try


            Dim dataAdapter As SqlDataAdapter
            dataAdapter = New SqlDataAdapter(Str, CType(Dbinterface.Connection, SqlConnection))
            Dim dataTable As DataTable = New DataTable()
            dataAdapter.Fill(dataTable)
            Return dataTable
        Catch ex As Exception
            MessageBox.Show(ex.ToString)
            Return Nothing
        End Try
    End Function

End Class